package view;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import model.FileParser;
import model.Manuscript;
import model.State;

/**
 * Panel that would appear if someone logged in with an unassigned role.
 * @author Sarah George
 * @version Autumn 2012
 */
@SuppressWarnings("serial")
public class UnAssignedPanel extends JPanel {
	
	/**
	 * The current state of the system.
	 */
	private State my_state;
	
	/**
	 * Constructor for the unassigned panel.
	 * @param the_statethe current state of the system
	 */
	public UnAssignedPanel(State the_state) {
		super();
		my_state = the_state;
		setup();
	}

	/**
	 * Method to setup the unassigned panel.
	 */
	public void setup() {
		NewPaperAction npa = new NewPaperAction(my_state);
		JButton add_paper = new JButton(npa);
		this.add(add_paper);
		//if we had implemented new user using this button would have set
		//the user's role to author.
	}
}//End class unassigned panel.